using UnityEngine;
using UnityEngine.UI;

public abstract class PSDWidget
{
    public enum PSDGroupType { Simple, Button, ScrollView, Grid }
    public enum PSDArtLayerType { Label, Image, Texture }

    public string Name;
    public int Index;
}

public class PSDGroup : PSDWidget
{
    public PSDGroupType Type;
    public PSDGroup[] PSDGroups;
    public PSDArtLayer[] PSDArtLayers;
}

public class PSDArtLayer : PSDWidget
{
    public Vector2 Position;
    public Vector2 Size;
    public bool IsSolid;
    public PSDArtLayerType Type;
    public Image.Type SpriteType;
    public string[] Arguments;
}

public class PSD
{
    public Vector2 PSDSize;
    public PSDGroup PSDGroup;
}